<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib  prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
	<title>用户删除页面</title>
	<link rel="stylesheet" href="../jquery/jquery.mobile-1.0a4.1.min.css" />
	<link rel="stylesheet" href="../css/user_style.css"/>
	<script type="text/javascript" src="../jquery/jquery-1.5.2.min.js"></script>
	<script type="text/javascript" src="../jquery/jquery.mobile-1.0a4.1.min.js"></script>
	<script type="text/javascript" src="user_delete.js"></script>
		
</head> 
<body>
<div data-role="page">

	<div id="header" data-role="header" data-theme="b">
		用户删除页面
		<a onclick="location='list.action'"  data-role="button" data-icon="back" data-iconpos="notext" style="float: right;"  >回退</a> 
		<a id="back_home" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
	</div><!-- /header -->

	<div data-role="content">

		<form action="delete.action" method="post" >

			<div data-role="fieldcontain">
	        	 <input type="hidden" name="id" id="id" value="<s:property value="user.id" />"  readonly="readonly" />
			</div>
			
			<div data-role="fieldcontain">
				<label for="userId">账号:</label>
	        	 <input type="text" name="userId" id="userId" value="<s:property value="user.userId" />" readonly="readonly"    />
	        	 <div id="info_userId"></div>

			</div>

			<div data-role="fieldcontain">
				<label for="name">姓名:</label>
	        	 <input type="text" name="name" id="name" value="<s:property value="user.name" />"  readonly="readonly"   />
				 <div id="info_name"></div>
			</div>

			<div data-role="fieldcontain">
	         <label for="password">密码:</label>
	         <input type="password" name="password" id="password" value="<s:property value="user.password" />"  readonly="readonly"   />
	          <div id="info_password"></div>
			</div>

			<div data-role="fieldcontain">
				<fieldset data-role="controlgroup" data-type="horizontal" >
			     		<legend>性别:</legend>
			     		 <s:if test='user.sex=="M"'>
			     		<input type="radio" name="sex" id="sex_m" value="M" checked disabled="disabled" />
			         	<label for="sex_m">男</label>
			         	<input type="radio" name="sex" id="sex_f" value="F" disabled="disabled" />
			         	<label for="sex_f">女</label>
			         	</s:if>
			         	<s:else>
			         	<input type="radio" name="sex" id="sex_m" value="M" disabled="disabled"  />
			         	<label for="sex_m">男</label>
			         	<input type="radio" name="sex" id="sex_f" value="F" checked disabled="disabled"/>
			         	<label for="sex_f">女</label>
			         	</s:else>
			    </fieldset>
			</div>
			<div data-role="fieldcontain">
				<label for="age">年龄:</label>

			 	<input type="text" name="age" id="age" value="<s:property value="user.age" />" min="0" max="100"  readonly="readonly"   />
			</div>

			<div data-role="fieldcontain">
				<label for="tel">电话:</label>
				<input type="text" name="tex" id="tel" value="<s:property value="user.tel" />"  readonly="readonly"  />
			</div>

			<div data-role="fieldcontain">
			
				<label for="email">Email</label>
				<input type="text" name="email" id="email"  value="<s:property value="user.email" />"  readonly="readonly"   />
			</div>
			
			<div data-role="fieldcontain">
			<fieldset data-role="controlgroup" data-type="horizontal" >
			     		<legend>头像</legend>
			     		<img src="../upload/<s:property value="user.photoName"/>" width="80px" height="80px" />
			     		<input type="hidden" name="photoName" value="<s:property value="user.photoName"/>"/>
			    </fieldset>
			</div>
			
		<div class="ui-body ui-body-b">
		<fieldset class="ui-grid-a">
				<div class="ui-block-a"><button type="button" data-theme="d" id="back">关闭</button></div>
				<div class="ui-block-b"><button type="submit" id="submit" data-theme="a">删除</button></div>

	    </fieldset>
		</div>
	</form>

	</div><!-- /content -->
</div><!-- /page -->

</body>
</html>
